package com.lc.feign;

import com.lc.feign.hystrix.UserOrderFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Author:LiChuang
 * Date: 2022/8/2 9:32
 */
@FeignClient(value = "order-center", fallback = UserOrderFeignHystrix.class)
public interface UserOrderFeign {

    @GetMapping("/getUserOrder")
    String getUserOrder(@RequestParam Integer id);
}
